﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanyManagementPage.aspx.cs"
    Inherits="WebApplication.Restricted.Management.Company.CompanyManagementPage" %>

<%@ Register Assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
    </div>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="CompaniesGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="CompaniesGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadGrid ID="CompaniesGrid" runat="server" AllowFilteringByColumn="True"
        AllowPaging="True" AllowSorting="True" GridLines="None" AutoGenerateDeleteColumn="True"
        AutoGenerateEditColumn="True" Skin="WebBlue" OnDeleteCommand="CompaniesGrid_DeleteCommand"
        OnInsertCommand="CompaniesGrid_InsertCommand" OnUpdateCommand="CompaniesGrid_UpdateCommand"
        OnNeedDataSource="CompaniesGridNeedDataSource">
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="Id" CommandItemDisplay="Top"
            EditMode="EditForms">
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="Id" HeaderText="Id" SortExpression="Id" UniqueName="Id"
                    DataType="System.Int32" ReadOnly="True">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name"
                    UniqueName="Name" ReadOnly="False">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="FullName" HeaderText="FullName" ReadOnly="False"
                    SortExpression="FullName" UniqueName="FullName">
                </telerik:GridBoundColumn>
                <telerik:GridCheckBoxColumn DataField="IsDefault" DataType="System.Boolean" HeaderText="IsDefault"
                    SortExpression="IsDefault" UniqueName="IsDefault" ReadOnly="False">
                </telerik:GridCheckBoxColumn>
            </Columns>
            <EditFormSettings EditFormType="AutoGenerated">
            </EditFormSettings>
        </MasterTableView>
        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
        </ClientSettings>
    </telerik:RadGrid>
    </form>
</body>
</html>
